package HomeWork.chapter05;

/**
 * Enjoy programming!!!
 * Time: 2021/11/30 -  19:12
 */
public class A {
    public void f(){
        System.out.println("英语字母表：");
        for (char i = 'A'; i <= 'Z'; i++){
            System.out.print(i + " ");
        }
        for (char i = 'a'; i <= 'z'; i++){
            System.out.print(i + " ");
        }
        System.out.printf("\n===========\n");

    }
}
class B extends A{
    public void g(){
        System.out.println("希腊字母表:");
        for (char i = 'α'; i <= 'ω'; i++){
            System.out.print(i + " ");
        }
        System.out.printf("\n===========\n");
    }
        }

class Test{
    public static void main(String[] args){
        A a = new A();
        B b = new B();

        a.f();
        b.g();
        b.f();
    }
}